x86: use {rd,wr}{fs,gs}base when available
authorJan Beulich <jbeulich@suse.com>
Fri, 11 Oct 2013 07:30:31 +0000 (09:30 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 11 Oct 2013 07:30:31 +0000 (09:30 +0200)
commit4b46e7be783df641b2889e514e85643febd378c2
tree27b7a86cad841a488a8b6f1aaea3fc695efcd859
parentd06a0d715ec1423b6c42141ab1b0ff69a3effb56
x86: use {rd,wr}{fs,gs}base when available

... as being intended to be faster than MSR reads/writes.

In the case of emulate_privileged_op() also use these in favor of the
cached (but possibly stale) addresses from arch.pv_vcpu. This allows
entirely removing the code that was the subject of XSA-67.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/Rules.mk
xen/arch/x86/acpi/suspend.c
xen/arch/x86/domain.c
xen/arch/x86/setup.c
xen/arch/x86/traps.c
xen/include/asm-x86/domain.h
xen/include/asm-x86/msr.h